﻿using System;
using System.Collections.Generic;
using System.Text;

namespace IceDog.DNL.CSharp.DesignPattern.InterceptingFilterPattern.WebReq
{
    /// <summary>
    /// 客户端（Client） - Client 是向 Target 对象发送请求的对象。
    /// </summary>
    public class Client
    {
        private FilterManager _filterManager;

        public void SetFilterManager(FilterManager filterManager)
        {
            this._filterManager = filterManager;
        }

        public void SendRequest(RequestType requestType)
        {
            _filterManager.FilterRequest(requestType);
        }
    }
}
